from django.db import models


# Create your models here.
class phase_data(models.Model):
    phasenum = models.fields.TextField(max_length=10)
    date = models.fields.TextField(max_length=10)
    red1 = models.fields.IntegerField()
    red2 = models.fields.IntegerField()
    red3 = models.fields.IntegerField()
    red4 = models.fields.IntegerField()
    red5 = models.fields.IntegerField()
    red6 = models.fields.IntegerField()
    blue = models.fields.IntegerField()
    jackpot = models.fields.TextField(max_length=20)
    firstnum = models.fields.TextField(max_length=20)
    firstprice = models.fields.TextField(max_length=20)
    secondnum = models.fields.TextField(max_length=20)
    secondprice = models.fields.TextField(max_length=20)
    totalbet = models.fields.TextField(max_length=20)

class note_data(models.Model):
    phasenum = models.fields.TextField(max_length=10)
    red1 = models.fields.IntegerField()
    red2 = models.fields.IntegerField()
    red3 = models.fields.IntegerField()
    red4 = models.fields.IntegerField()
    red5 = models.fields.IntegerField()
    red6 = models.fields.IntegerField()
    blue = models.fields.IntegerField()
    bonuslevel = models.fields.TextField(max_length=10,default='未中奖')#从一等将至未中奖
    ischeck = models.fields.BooleanField(default=False)#检测是否中奖

#奖金计算元数据表
class reward_conditions(models.Model):
    bonuslevel = models.fields.TextField(max_length=10)
    red = models.fields.IntegerField()
    blue = models.fields.IntegerField()
    single_bonus = models.fields.TextField(max_length=10)